package com.chenhao.springcloud.chenhaodesignservice.algorithm.bubble;

import java.util.Arrays;
import java.util.List;

/**
 * Description:
 *
 * @author chenhao
 * @date 2020/6/5 15:37
 */
public class test {
    public static void main(String[] args) {
        List <String> list = Arrays.asList("ABC", "DEF", "GHI");
        list.stream()
                .map(s -> s.split("")) // Stream<String[]>
                .flatMap(Arrays::stream) // Steam<String>
                .forEach(System.out::println);
    }
}
